package com.chinaunicom.emergency.repository;

import com.chinaunicom.emergency.model.Role;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;


/**
 * @author liliang
 * @date 2019-12-13
 * 角色
 */
public interface RoleRepository extends JpaRepository<Role,String>, JpaSpecificationExecutor {

    Role findByPidAndIsSoftDel(String pid, Integer isSoftDel);

    Role findByRoleCodeAndIsSoftDel(String roleCode, Integer isSoftDel);

    Role findByRoleNameAndIsSoftDel(String roleName, Integer isSoftDel);

    List<Role> findAllByIsSoftDel(Integer i);
}
